﻿<div class="header">
    <div class="headerTopAreaBox">
        <div class="headerTopArea">
            <div class="headerTop">
                <div class="headerTopLeft">
                    <div class="loginArea" id="welcome">
                        您好，欢迎光临 满衣屋!</div>
                    <div class="recommendArea">
                        <a class="track" href="#">为您推荐</a><a href="javascript:AddFavorite('满衣屋! 满意网上购物!', 'http://www.52buying.com');"
                            id="taoFavorite">收藏本站</a></div>
                </div>
                <div class="headerTopRight">
                    <div id="taobao-login">
                    </div>
                    <script>
                        TOP.ui("login-btn", {
                            container: "#taobao-login"
                        , type: "8,4"
                        , callback: {
                            login: function () { }
                          , logout: function () { }
                        }
                        });
                    </script>
                </div>
                <span class="blank0"></span>
            </div>
        </div>
    </div>
    <div id="logoArea" class="logoSearchSubnavArea">
        <div class="logoArea">
            <a href="@Url.RouteUrl("HomePage")" class="logo" title="欢迎光临 满衣屋!">
                <img src="/Content/images/logo.jpg" width="320" height="55" alt="欢迎光临 满衣屋!" /></a>
        </div>
        <div class="searchAreaBlock">
            <div class="searchLeft">
                <div class="search">
                    <div class="searchInt">
                        <input id="txtKeyword" type="text" value="9元衬衫" class="searchText ac_input" onfocus="this.select()"><input
                            id="btnSearch" type="button" class="searchBtn">
                    </div>
                    <div class="searchWordsBox">
                        <div id="searchWords" class="searchWords">
                            <a href="@Url.RouteUrl("ItemList")?Keyword=T恤" title="T恤">T恤</a><a
                                href="@Url.RouteUrl("ItemList")?Keyword=帆布鞋" title="帆布鞋">帆布鞋</a><a
                                    href="@Url.RouteUrl("ItemList")?Keyword=衬衫" title="衬衫">衬衫</a><a
                                        href="@Url.RouteUrl("ItemList")?Keyword=休闲裤" title="休闲裤">休闲裤</a><a
                                            href="@Url.RouteUrl("ItemList")?Keyword=运动装" title="运动装">运动装</a><a
                                                href="@Url.RouteUrl("ItemList")?Keyword=卫衣" title="卫衣">卫衣</a><a
                                                    href="@Url.RouteUrl("ItemList")?CategoryId=16&Keyword=19元" title="19元区">19元区</a></div>
                    </div>
                </div>
            </div>
            <div class="headerTopRight">
                <div id="shoppingCarNone" class="active">
                    <div class="mini-cart">
                    </div>
                    <script>
                        TOP.ui('minicart', {
                            container: '.mini-cart',
                            position: 'top'/*默认为top; top为横向购物车，right为纵向购物车*/
                        });
                    </script>
                </div>
            </div>
            <div class="blank0">
            </div>
        </div>
        <div class="blank0">
        </div>
    </div>
</div>
<script type="text/javascript">
    $(document).ready(function () {
        $("#btnSearch").click(function () {
            var keyword = $.trim($("#txtKeyword").val());
            var url = "@Url.RouteUrl("ItemList")?keyword="+keyword;
            window.location.href = url;
        });
    });
    function AddFavorite(sTitle,sURL ) {
        try {
            window.external.addFavorite(sURL, sTitle);
        }
        catch (e) {
            try {
                window.sidebar.addPanel(sTitle, sURL, "");
            }
            catch (e) {
                alert("加入收藏失败，请使用Ctrl+D进行添加");
            }
        }
    }
</script>
